package com.example.design.patterns.冰河.创建型模式.建造者.冰河;

import com.example.design.patterns.冰河.创建型模式.建造者.冰河.concreteBuilder.ManBuilder;
import com.example.design.patterns.冰河.创建型模式.建造者.冰河.director.PersonDirector;
import com.example.design.patterns.冰河.创建型模式.建造者.冰河.product.Person;

public class Test {
    public static void main(String[] args) {
        PersonDirector personDirector = new PersonDirector();
        Person person = personDirector.constructPerson(new ManBuilder());
        System.out.println(person.getHead());
        System.out.println(person.getBody());
        System.out.println(person.getFoot());

    }
}
